-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/ldap email #789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bess
wants to merge
19
commits into
master
Choose a base branch
from
feature/ldap-email
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/ldap email #789
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 tasks
2c89a04 to
67da034
Compare
226f8f5 to
a8bc754
Compare
This commit adds the devise_ldap_authenticatable gem to support authentication via LDAP. The application already has devise installed, so you only need to run the devise_ldap_authenticatable genearator as described in https://github.com/cschiewek/devise_ldap_authenticatable#setup The committ also adds the ladle gem to provide a LDAP server which can be used in the test and development environments. It also updates Travis to start the LDAP server before running the test suite.
Update User factory to match Configure Devise to user :username instead of :email for authentication
Instead of looking up users by email, use Hydra.config.user_key_field and find_by_user_key methods so that when we update the user key things don't break.
Note we will also need to remove the password from this method if we stop storing user passwords.
a52163b to
e0abbf3
Compare
This commit adds the devise_ldap_authenticatable gem to support authentication via LDAP. The application already has devise installed, so you only need to run the devise_ldap_authenticatable genearator as described in https://github.com/cschiewek/devise_ldap_authenticatable#setup The committ also adds the ladle gem to provide a LDAP server which can be used in the test and development environments. It also updates Travis to start the LDAP server before running the test suite.
Update User factory to match Configure Devise to user :username instead of :email for authentication
Instead of looking up users by email, use Hydra.config.user_key_field and find_by_user_key methods so that when we update the user key things don't break.
Note we will also need to remove the password from this method if we stop storing user passwords.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #28
Closes #69